﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace TB_WS.ASMX
{
    /// <summary>
    /// RDS_Server 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class RDS_Server : System.Web.Services.WebService
    {

        [WebMethod(Description ="从上一次获取到现在的订单变更记录")]
        public DataSet GET_RDS_LAST_TRADE()
        {
            return Class.JST_Trade.Get_Last_RD_Data();
        }

        [WebMethod(Description ="根据买家ID获取详细订单记录")]
        public DataSet GET_TRADEINFO_USE_BUYER_NICK(string Buyer_Nick)
        {
            return Class.JST_Trade.Search_Trade(Buyer_Nick);
        }
        
        [WebMethod(Description ="根据卖家ID获取已付款列表-倒序")]
        public DataSet GET_PAY_TIDS_DESC(string Seller_Nick)
        {
            return Class.JST_Trade.Get_Pay_Tids_Desc(Seller_Nick);
        }
    }
}
